package com.gph.saviorframework.es.core.facet.request;

import com.gph.saviorframework.es.core.facet.FacetRequest;
import org.elasticsearch.search.aggregations.AbstractAggregationBuilder;

@Deprecated
public class NativeFacetRequest implements FacetRequest {

	public NativeFacetRequest() {
		throw new UnsupportedOperationException("Native Facet are not supported in Elasticsearch 2.x - use Aggregation");
	}

	@Override
	public AbstractAggregationBuilder getFacet() {
		return null;
	}

	@Override
	public boolean applyQueryFilter() {
		return false;
	}
}
